package com.example.test12;

import android.content.IntentFilter;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        BR br = new BR();
        IntentFilter intentFilter = new IntentFilter();
        intentFilter.addAction("aa");
        this.registerReceiver(br,intentFilter);
    }
}
